<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <title>监管系统</title>
    <link rel="shortcut icon"
          href="https://www.aioclinic.com/alioss-proxy/wenuan-oss-public/pc_img/website/logo/qzt_short.ico">
    <link th:href="@{/plugins/css/bootstrap.css(v=${version})}" rel="stylesheet">
    <link th:href="@{/plugins/css/jquery-ui.css(v=${version})}" rel="stylesheet">
    <link th:href="@{/css/weknow.css(v=${version})}" rel="stylesheet">
    <link th:href="@{/css/prescriptionAudit.css(v=${version})}" rel="stylesheet">
    <link th:href="@{/css/boxImg.css(v=${version})}" rel="stylesheet">
</head>
<body>
<div class="auditTabDiv">
    <div class="notReviewedTabDiv">未审核</div>
    <div class="reviewedTabDiv">已审核</div>
</div>

<!-- 头部信息 -->
<div id="notReviewedDiv">
    <div class="queryDiv">
        <div class="row">
            <div class="col-xs-12">
                <div class="form-inline">
                    <div class="form-group">
                        上传日期：
                        <div class="input-group">
                            <input type="text" class="form-control my_date_control" style="ime-mode:active"
                                   maxlength="10"
                                   id="notReviewedDtFrom" th:value="${dtFrom}" autocomplete="off">
                        </div>

                    </div>
                    <div class="form-group">
                        --
                        <div class="input-group">
                            <input type="text" class="form-control my_date_control" style="ime-mode:active"
                                   maxlength="10"
                                   id="notReviewedDtTo" th:value="${dtTo}" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group margin-leftDiv">
                        上传人员：
                        <div class="input-group">
                            <select id="uploaderId" class="form-control">
                                <option value="">全部</option>
                                <option th:each="personnel,userStat:${personnels}" th:value="${personnel.supervisorId}"
                                        th:text="${personnel.name}"></option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group margin-leftDiv">
                        医疗机构名称：
                        <div class="input-group">
                            <input type="text" class="form-control" style="ime-mode:inactive"
                                   id="notReviewedInstitutionName"
                                   autocomplete="off">
                        </div>
                    </div>


                    <div class="form-group">
                        <div class="input-group">
                            <button type="button" id="notReviewedSearch" class="btn btn-primary" style="width:90px;">
                                搜索
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="dataDiv">
        <table class="table table-condensed table-hover table-bordered" id="notReviewedTable">
            <thead class="bg-default">
            <tr>
                <th class="text-center" style="width:3%;">序号</th>
                <th class="text-center" style="width:8%;">上传日期</th>
                <th class="text-center" style="width:10%;">医疗机构</th>
                <th class="text-center" style="width:8%;">上传人员</th>
                <th class="text-center" style="width:8%;">操作</th>
            </tr>
            </thead>
            <tbody id="tbodyNotReviewedTableList">
            </tbody>
        </table>
    </div>
</div>

<div id="reviewedDiv" style="display: none">
    <div class="queryDiv">
        <div class="row">
            <div class="col-xs-12">
                <div class="form-inline">
                    <div class="form-group">
                        审核日期：
                        <div class="input-group">
                            <input type="text" class="form-control my_date_control" style="ime-mode:active"
                                   maxlength="10"
                                   id="reviewedDtFrom" th:value="${dtFrom}" autocomplete="off">
                        </div>

                    </div>
                    <div class="form-group">
                        --
                        <div class="input-group">
                            <input type="text" class="form-control my_date_control" style="ime-mode:active"
                                   maxlength="10"
                                   id="reviewedDtTo" th:value="${dtTo}" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        审核结果：
                        <div class="input-group">
                            <select id="auditResult" class="form-control">
                                <option value="">全部</option>
                                <option value="1">合规</option>
                                <option value="2">违规</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        审核人员：
                        <div class="input-group">
                            <select id="auditId" class="form-control">
                                <option value="">全部</option>
                                <option th:each="personnel,userStat:${personnels}" th:value="${personnel.supervisorId}"
                                        th:text="${personnel.name}"></option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        医疗机构名称：
                        <div class="input-group">
                            <input type="text" class="form-control" style="ime-mode:inactive"
                                   id="reviewedInstitutionName"
                                   autocomplete="off">
                        </div>
                    </div>


                    <div class="form-group">
                        <div class="input-group">
                            <button type="button" id="reviewedSearch" class="btn btn-primary" style="width:90px;">搜索
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="dataDiv">
        <table class="table table-condensed table-hover table-bordered" id="reviewedTable">
            <thead class="bg-default">
            <tr>
                <th class="text-center" style="width:3%;">序号</th>
                <th class="text-center" style="width:8%;">审核日期</th>
                <th class="text-center" style="width:15%;">医疗机构</th>
                <th class="text-center" style="width:15%;">审核结果</th>
                <th class="text-center" style="width:10%;">违规类目</th>
                <th class="text-center" style="width:15%;">违规内容</th>
                <th class="text-center" style="width:5%;">处方图片</th>
                <th class="text-center" style="width:8%;">审核人员</th>
                <th class="text-center" style="width:8%;">上传人员</th>
                <th class="text-center" style="width:8%;">上传日期</th>
            </tr>
            </thead>
            <tbody id="tbodyReviewedTableList">
            </tbody>
        </table>
    </div>
</div>


<div id="pageDiv" class="pageDiv">
    <div class="upPageDiv">上一页</div>
    <div>
        第
        <select class="pageSelect" id="selectPage">
            <option value="1">1</option>
        </select>
        <input type="hidden" id="pageNum" value="1">
        页
    </div>
    <div class="downPageDiv"><a href="">下一页</a></div>
    <div class="allPage">共1页</div>
    <div>
        <select class="limitSelect" id="pageSize">
            <option value="10">10</option>
            <option value="25">25</option>
            <option value="50">50</option>
            <option value="100">100</option>
        </select>
        条/页
    </div>
</div>



<div id="pageDivOther" class="pageDivOther" style="display: none">
    <div class="upPageDivOther">上一页</div>
    <div>
        第
        <select class="pageSelectOther" id="selectPageOther">
            <option value="1">1</option>
        </select>
        <input type="hidden" id="pageNumOther" value="1">
        页
    </div>
    <div class="downPageDivOther"><a href="">下一页</a></div>
    <div class="allPageOther">共1页</div>
    <div>
        <select class="limitSelectOther" id="pageSizeOther">
            <option value="10">10</option>
            <option value="25">25</option>
            <option value="50">50</option>
            <option value="100">100</option>
        </select>
        条/页
    </div>
</div>


<div class="modal fade" id="auditPrescriptionLink" tabindex="-1" role="dialog">
    <div class="modal-dialog" style="width: 500px;">
        <div class="modal-content">
            <div class="modal-header" style="height: 50px;">
                <h4 class="modal-title">审核</h4>
            </div>
            <div class="modal-body">
                <label>审核结果：</label>
                <label><input type="radio" name="resultRadio" value="1"/>合规</label>
                <label style="margin-left: 10%"><input type="radio" name="resultRadio" value="2"/>违规</label>

            </div>
            <div id="msgIdDiv" style="display: none" class="modal-body">
                <label>违规类目：</label>
                <label style="margin-left: 2%" th:each="msg,userStat:${violationMessageList}">
                    <input type="checkbox" th:value="${msg.msgId}" name="violationCheckbox"/>
                    <span th:text="${msg.title}"></span>
                </label>

            </div>
            <div id="msgContextDiv" style="display: none" class="modal-body">
                <p><label>违规内容：</label></p>
                <textarea id="violationContext" style="width: 100%;height:80px"></textarea>
            </div>
            <div id="msgDateDiv" style="display: none" class="modal-body">
                <label>开具处方日期：</label>
                <label><input type="text" class="form-control my_date_control" style="ime-mode:active"
                              maxlength="10"
                              id="violateDt"  autocomplete="off"></label>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" id="saveLink">确认提交</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


</body>

<script th:src="@{/js/jquery.min.js(v=${version})}"></script>
<script th:src="@{/plugins/js/bootstrap.js(v=${version})}"></script>
<script th:src="@{/js/weknow.js(v=${version})}"></script>
<script th:src="@{/plugins/js/wn-jquery-ui.js(v=${version})}"></script>
<script th:src="@{/plugins/js/wn-validator.js(v=${version})}"></script>
<script th:src="@{/js/loadCheck.js(v=${version})}"></script>
<script th:src="@{/js/prescriptionAudit.js(v=${version})}"></script>
<script th:src="@{/js/showImg.js(v=${version})}"></script>
<!--载入页面时根据code值执行不同逻辑-->
<script th:if="${code}" th:inline="javascript">
    $(document).ready(function () {
        loadCheck([[${code}]], [[${msg}]]);
    });
</script>
</html>
